home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0799 / 528 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  942 b 

  1. From: Ulrich Kuehn <kuehn@serd.cscs.ch>
  2. Subject: Re: sleep() and device drivers ...
  3. Date: Thu, 07 Oct 1993 16:06:21 +0100
  4.  
  5. Hello,
  6.  
  7. > Is there a safe way for a device driver function to decide whether a call to
  8. > sleep() was interrupted by delivery of a signal, or (even better) a way to
  9. > make sure the functions arguments are still valid after a sleep()?
  10. I just looked into the source of the FreeBSD distribution to see how they
  11. deal with the problem. It turned out that the sleep function returns
  12. a value indicating if the sleep was interrupted or not and if the system
  13. call should be restarted (this can be set for each signal handler).
  14. I think that this would provide the simplest solution for MiNT and it's
  15. device drivers, and it would be completely backward compatible :-)
  16.  
  17. Regards,
  18. Ulrich
  19.  
  20. --
  21. Ulrich Kuehn                               email: kuehn@serd.cscs.ch
  22. Section of Research and Development
  23. Swiss Scientific Computing Centre
  24.